/**
 * Created by zcr on 2018/5/5.
 */
export default {
  saveMsg(state, msg) {
    state.msg = msg;
  },
  updateLoadingStatus(state, payload) {
    state.isLoading = payload.isLoading
  },
  setDataByName(state, payload) {
    if (!!payload.index) {
      state[payload.key][payload.index] = payload.val
    } else {
      state[payload.key] = payload.val
    }
  },
  saveEmailContact(state, contactArr) {
    state.emailContactArr = contactArr;
  }
}
